package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.TxfkBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface TxfkService extends BaseService<TxfkBean> {

	TxfkBean getTxfkBeanById(String id) throws Exception;
	
	void removeTxfkBeanById(String id) throws Exception;
	
	void removeTxfkBeanByIds(String ids) throws Exception;
	
	TxfkBean saveTxfkBean(TxfkBean crm) throws Exception;
	
	TxfkBean updateTxfkBean(TxfkBean crm) throws Exception;
	
	Page<TxfkBean>  findTxfkBeanByCond(TxfkBean bean,
			Page<TxfkBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveTxfkBeanExt(String sql) throws Exception;

	String findTxfkBeanExtCreate(String tableName) throws Exception;

	String findTxfkBeanExtEdit(String tableName, String id)
			throws Exception;

	String findTxfkBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasTxfkBeanExtData(String tableName, String id)
			throws Exception;
}